package com.example.zaq.dao;

//20210520 zaq  引入

import com.example.zaq.model.AspBook;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface AspBookDao {
    int deleteByPrimaryKey(Integer bId);

    int insert(AspBook record);

    int insertSelective(AspBook record);

    AspBook selectByPrimaryKey(Integer bId);

    int updateByPrimaryKeySelective(AspBook record);

    int updateByPrimaryKey(AspBook record);

    /**
     * 删除账簿
     * @param record
     * @return
     */
    AspBook deleteBook(AspBook record);

    /**
     * 新增账簿
     * @param record
     * @return
     */
    AspBook insertBook(AspBook record);

    /**
     * 查询用户拥有账簿
     * @param uId
     * @return
     */
    List<AspBook> selectUserBook(Integer uId);

    /**
     * 修改账簿名称
     * @param record
     * @return
     */
    AspBook updateBook(AspBook record);
}